import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int maxn=0;
        int minn=0;
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        int[] arr=new int[s.length()];
        char[] ch=new char[s.length()];
        for(int i=0;i<s.length();i++){
            int sum=0;
            for(int j=0;j<s.length();j++){
                ch[i]=s.charAt(i);
                ch[j]=s.charAt(j);
                if(i<=j){
                    if(ch[i]==ch[j]){
                        sum++;
                    }
                }
                if(i>j){
                    if(ch[i]==ch[j]){
                        break;
                    }
                }
            }
            arr[i]=sum;
        }
        maxn=arr[0];
        minn=arr[0];
        for(int i=1;i<s.length();i++){
            if(maxn<arr[i]){
                maxn=arr[i];
            }
        }
        for(int i=1;i<s.length();i++){
            if(minn>arr[i]&&arr[i]!=0){
                minn=arr[i];
            }
        }
        if(func(maxn-minn)){
            System.out.println("Lucky Word");
            System.out.println(maxn-minn);
        }else{
            System.out.println("No Answer");
            System.out.println(0);
        }
    }
    public static boolean func(int n){
        if(n<2){
            return false;
        }
        for(int i=2;i<n;i++){
            if(n%i==0){
                return false;
            }
        }
        return true;
    }
}